﻿using Expect.Core.IO;

namespace Expect.Core.CodeGen
{    
    /// <summary>
    /// specification parser
    /// </summary>
    public class ExpectSpecParser
    {
        private TextSpecificationReader reader = new TextSpecificationReader();

        /// <summary>
        /// Parser constructor
        /// </summary>
        public ExpectSpecParser()
        {
        }

        /// <summary>
        /// Parse specification
        /// </summary>
        /// <param name="inputname"></param>
        /// <param name="content"></param>
        /// <returns></returns>
        public ParsingResult Execute(string inputname, string content)
        {
            return reader.ReadSpecification(inputname, content);
        }
    }
}
